package com.jdrx.ocp.beans.dto.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @Author: Huangxg
 * @Date: 2018/11/20 13:47
 */
@ApiModel(value = "更新角色" , description = "用于角色更新DTO")
public class UpdateRoleDTO {

    @NotNull
    @ApiModelProperty(value = "数据ID" ,required = true)
    private Long id;

    @NotBlank
    @Length(min = 1 , max = 25)
    @ApiModelProperty(value = "角色名称" , required = true)
    private String name;

    @Length(min = 0 , max = 255)
    @ApiModelProperty(value = "备注", notes = "角色备注信息")
    private String remark;

    @ApiModelProperty(value = "角色标识符",notes = "角色标识符")
    private String identifier;

    @ApiModelProperty(value = "拥有的资源id列表,以英文逗号隔开")
    private String resourceIds;

    @ApiModelProperty(value = "拥有的资源id列表,以英文逗号隔开（全部节点）")
    private String resourceAllIds;

    @ApiModelProperty(value = "角色类型(0:领导角色,1:业务角色)")
    private Integer type;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getResourceIds() {
        return resourceIds;
    }

    public void setResourceIds(String resourceIds) {
        this.resourceIds = resourceIds;
    }

    public String getResourceAllIds() {
        return resourceAllIds;
    }

    public void setResourceAllIds(String resourceAllIds) {
        this.resourceAllIds = resourceAllIds;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
